<div class="outer-fill shadow padding15">
 <div class="judul-page">Data Slider</div>
<a href="<?php echo site_url('admin_slider/view_add')?>" class="btn btn-success btn-sm"> <span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;Tambah</a>
 <br><br>
             <!-- style table -->
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>No</th>
				  <th>Gambar</th>
                  <th>Judul</th>
                  <th>Aksi</th>
                </tr>
              </thead>
              <tbody>
			  <?php 
			  $no=1+$offset;
			  foreach($hasil as $val){
			  ?>
                <tr>
                  <td><?php echo $no?></td>
                  <td><?php echo "<img src='".base_url()."foto_slider/$val[gambar]' height=40>";?></td>  
				  <td><?php echo "$val[judul]";?></td>
                  <td>
                    <a href="<?php echo site_url('admin_slider/view_edit'."/".$val['id_slider']);?>" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-edit"></span>&nbsp;Edit</a>
                    <a onclick="return confirm('Apakah data ingin dihapus ?')" href="<?php echo site_url('admin_slider/delete'."/".$val['id_slider']);?>" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-trash"></span>&nbsp;Hapus</a>
                    
                  </td>
                </tr>
              
                <?php
				$no++;
				}
				?>
              </tbody>
            </table>
            <!-- end table -->
<?php
echo ! empty($pagination) ? '<center><div class="pagination">' . $pagination . '</div></center>' : '';
?>
</div>